Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Abstract collection existence check into a utility function #1814

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ch4r1ty
Copy link

@ch4r1ty ch4r1ty commented Mar 11, 2025

  • Moved the logic for checking if a collection exists into a shared utility function collection_exists.
  • Updated QdrantStorage class to use the new utility function for checking collection existence.
  • This change reduces code duplication and improves maintainability across the codebase.

Description

Describe your changes in detail (optional if the linked issue already contains a detailed description of the changes).

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #issue-number in the PR description (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed:
  • I have added examples if this is a new feature

If you are unsure about any of these, don't hesitate to ask. We are here to help!

- Moved the logic for checking if a collection exists into a shared utility function `collection_exists`.
- Updated `QdrantStorage` class to use the new utility function for checking collection existence.
- This change reduces code duplication and improves maintainability across the codebase.
@Wendong-Fan Wendong-Fan changed the title Refactor: Abstract collection existence check into a utility function refactor: Abstract collection existence check into a utility function Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant